package KatPhTests;

import Rout.GoBefore;
import org.testng.annotations.*;

public class KatSmall {

    private GoBefore browser = new GoBefore();     
                
    @BeforeMethod
    public void setUp() throws Exception {
        System.out.println("\n Run test: " + getClass().getSimpleName());
           
       
        browser.setCurURL("https://kickass.to/accidental-love-2015-hdrip-xvid-juggs-etrg-t10202476.html");
        browser.setCssButton("#_ad4d917f2e764fab63b916b5e0655d2e > a");
        browser.setXpFilename("//*[@id=\"mainDetailsTable\"]/tbody/tr/td[1]/h1/a/span");        
        browser.setLpurl("getsecuredfiles.com");
        browser.setRepDir(getClass().getSimpleName());
    }        
            
    @Test
    public void SmalButton () throws Exception {
        
        
        
        browser.setUp();
        browser.testRun();
        browser.lpDetect();
        browser.verFilePresent();
        browser.verFilename();  
    }
    
    @AfterMethod
    public void ThearsDown() {
        browser.getDriver().quit();      
        
    }
    
}
